#ifndef DUOPL_BT_H
#define DUOPL_BT_H

#include <QWidget>
#include <QtGui>

class duopl_bt : public QToolButton
{

    Q_OBJECT
public:
    duopl_bt();
    duopl_bt(const QString &strImage,const QString &strInfo,QWidget *parent);
    void enterEvent(QEvent *event);
    void leaveEvent(QEvent *event);
    void SetOver(bool bEnable);
    void paintEvent(QPaintEvent *event);
    void painterinfo(int nTopPartOpacity,int nBottomPartOpacity,QPainter *pPainter);
    void SetPress(bool bEnable);
signals:
    void signal_parent(void *);
public slots:
    void slot_pressed();
private:
    bool m_bOver;
    int m_bPress;
    QString m_strImage;
    QString m_strInfo;




};

#endif // DUOPL_BT_H
